﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net;

namespace Log4Net.Lib.Utility
{
    internal static class Logger
    {
        private static log4net.ILog _Logger = log4net.LogManager.GetLogger("LeonLog.Lib");
        
        private static ILog Log
        {
            get
            {
                ThreadContext.Properties["user"] = string.Empty;

                return _Logger;
            }
        }

        public static void LogThis(Exception ex)
        {
            Log.Error("This is error from Lib",ex);
        }
        
        public static void LogInfo(string info)
        {
            Log.Info(info);
        }

        public static void LogWarn(string warn)
        {
            Log.Warn(warn);
        }
    }
}
